package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.Date;

/**
 * 用户关注表对象 user_attention
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("用户关注表-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user_attention")
public class UserAttentionEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 关注人ID
	 */
	@ApiModelProperty("关注人ID")
	private Long attentionUser;

	/**
	 * 被关注人ID
	 */
	@ApiModelProperty("被关注人ID")
	private Long attentionedUser;

	/**
	 * 关注时间
	 */
	@ApiModelProperty("关注时间")
	private Date attentionTime;

}
